import request from '@/utils/request'

// 查询加油站油价列表
export function listOil(query) {
  return request({
    url: '/jiayou/oil/list',
    method: 'get',
    params: query
  })
}

// 查询加油站油价详细
export function getOil(id) {
  return request({
    url: '/jiayou/oil/' + id,
    method: 'get'
  })
}

// 新增加油站油价
export function addOil(data) {
  return request({
    url: '/jiayou/oil',
    method: 'post',
    data: data
  })
}

// 修改加油站油价
export function updateOil(data) {
  return request({
    url: '/jiayou/oil',
    method: 'put',
    data: data
  })
}

// 删除加油站油价
export function delOil(id) {
  return request({
    url: '/jiayou/oil/' + id,
    method: 'delete'
  })
}
